import java.util.List;

public class Main{

    public static void main(String[] args) {
        MyBinarySet binarySet = new MyBinarySet();
        binarySet.creatNode();
        List<List<Integer>> list = binarySet.levelOrderBottom(binarySet.root);
    }

    public static void main2(String[] args) {
        MyBinarySet binarySet = new MyBinarySet();
        binarySet.creatNode();
        int[] post = {4,5,2,6,7,3,1};
        int[] inorder = {2,4,5,1,6,3,7};

       MyBinarySet.BTNode root = binarySet.buildTree(post,inorder);

          binarySet.postOrder(root);
    }

    public static void main1(String[] args) {
         MyBinarySet binarySet = new MyBinarySet();
         binarySet.creatNode();
         binarySet.preOrder(binarySet.root);

        System.out.println();

         binarySet.inOrder(binarySet.root);
        System.out.println();
         binarySet.postOrder(binarySet.root);

        System.out.println();

        binarySet.size(binarySet.root);
        System.out.println(binarySet.BTSize);

        System.out.println(binarySet.leafNodeCount(binarySet.root));

        System.out.println(binarySet.getKLevelNodeCount(binarySet.root,4));

        System.out.println(binarySet.deepPath(binarySet.root));

        System.out.println(binarySet.getNode(binarySet.root,0).val);
    }


}